import Vue from 'vue'
import App from './App.vue'
import service from './utils/servcie'
import store from './store/index';
// 引入动态路由全局配置
import router from './router/index';

import {AddressEdit,Tab,Tabs,Stepper,Swipe, SwipeItem, Search, CountDown, List, Sidebar, SidebarItem, TreeSelect, Grid, GridItem, Image as VanImage, Icon, Cell, CellGroup, Form, Field, Button, Area, Popover, Cascader, Popup, GoodsAction, GoodsActionIcon, GoodsActionButton,Sticky, Empty,AddressList,Divider,SubmitBar ,checkbox,ShareSheet, Overlay ,Toast ,DropdownMenu, DropdownItem,Switch,Card ,Tag,SwipeCell,Checkbox, CheckboxGroup,NavBar} from 'vant';
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);
Vue.use(CountDown);
Vue.use(List);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(TreeSelect);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(VanImage);
Vue.use(Icon);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(Area);
Vue.use(Popover);
Vue.use(Cascader);
Vue.use(Popup);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Sticky);
Vue.use(Empty);
Vue.use(AddressList);
Vue.use(Divider);
Vue.use(SubmitBar);
Vue.use(checkbox );
Vue.use(ShareSheet);
Vue.use(Overlay);
Vue.use(Toast);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Switch);
Vue.use(Card);
Vue.use(Tag);
Vue.use(SwipeCell);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Stepper);
Vue.use(NavBar);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(AddressEdit);

Vue.config.productionTip = false
Vue.prototype.$service = service


new Vue({
  render: h => h(App),
  router,
  store,//将store对象植入到vue的根属性，在vue组件里就可以使用this.$store拿到vuex.store对象
}).$mount('#app')
